/*
 * @Author: xuningda 1721417139@qq.com
 * @Date: 2022-08-31 15:01:41
 * @LastEditors: xuningda 1721417139@qq.com
 * @LastEditTime: 2022-09-15 15:37:15
 * @FilePath: \WEB\src\utils\apis\dataAccount.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '../request'

// 数据核算-成本分摊
export function insertCoefficient(params) {
    return request({
        url: 'allocationCoefficient/insertCoefficient',
        method: 'POST',
        data: params
    })
}
// 成本分摊
export function quickAmortization(params) {
    return request({
        url: 'allocationCost/quickAmortization',
        method: 'POST',
        data: params
    })
}
// 收支采集-执行分摊
export function insertBaseCost(params) {
    return request({
        url: 'baseCost/insertBaseCost',
        method: 'POST',
        data: params
    })
}
// 收支采集
export function insertBaseInCome(params) {
    return request({
        url: 'baseInCome/insertBaseInCome',
        method: 'POST',
        data: params
    })
}

// 收支数据-检查
export function getCheckIncome(params) {
    return request({
        url: 'etlAccvouch/getCheckIncome',
        method: 'POST',
        data: params
    })
}

// 未完整分科科室
export function noAmortizationDept(params) {
    return request({
        url: 'amortizationData/noAmortizationDept',
        method: 'POST',
        data: params
    })
}

// 导出
export function exportExcel7(params) {
    return request({
        url: 'amortizationData/exportExcel7',
        method: 'POST',
        data: params,
        responseType: 'blob'
    })
}
